Platform Explorer / Nuxeo Platform LTS 2017 9.10

Component org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib

Contributions

XML Source

<?xml version="1.0"?>
<component
  name="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib">

  <extension
    target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
    point="factory">

    <contentFactory name="SimpleTemplateFactory"
      class="org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory" />

    <contentFactory name="SimpleTemplateRootFactory"
      class="org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedRootFactory" />

    <contentFactory name="ImportFactory"
      class="org.nuxeo.ecm.platform.content.template.factories.ImportBasedFactory" />
  </extension>

  <extension
    target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
    point="factoryBinding">

    <factoryBinding name="RootFactory" factoryName="SimpleTemplateRootFactory"
      targetType="Root">
      <acl>
        <ace principal="Administrator" permission="Everything" granted="true" />
        <ace principal="members" permission="Read" granted="true" />
      </acl>
      <template>
        <templateItem typeName="Domain" id="default-domain" title="Domain" />
      </template>
    </factoryBinding>

    <factoryBinding name="DomainFactory" factoryName="SimpleTemplateFactory"
      targetType="Domain">
      <template>
        <templateItem typeName="WorkspaceRoot" id="workspaces"
          title="Workspaces" />
        <templateItem typeName="SectionRoot" id="sections" title="Sections" />
        <templateItem typeName="TemplateRoot" id="templates" title="Templates" />
      </template>
    </factoryBinding>

    <factoryBinding name="SectionRootFactory" factoryName="SimpleTemplateFactory"
      targetType="SectionRoot">
      <acl>
        <ace principal="members" permission="CanAskForPublishing" granted="true" />
      </acl>
    </factoryBinding>

  </extension>

</component>